import axios from "@/http/http.js";

// 封装根据user_id获取权限接口
export const permissionFindByIdAPI = (id) => {
    return axios({
        url: `/permission/findPermissionById/${id}`,
        method: 'post'
    })
};

// 封装权限启停接口
export const permissionUpdateAPI = (data) => {
    return axios({
        url: '/permission/updatePermission',
        method: 'post',
        data
    })
};